#ifndef _WG26_H_
#define _WG26_H_

#include "stm32f10x.h"


typedef struct 
{
	
	  unsigned char	odd;
	  unsigned char	HID;
	  unsigned short PID;
	  unsigned char even;	
}Wg26struct,*pWg26;

typedef union
{
	unsigned long value;
	struct 
	{
		unsigned long odd:1;
		unsigned long PID:16;
		unsigned long HID:8;
		unsigned long even:1;
	}wgvalue;
} Wg26union;


void WG26_GPIO_Init(void);
void WG26_EXTI_Init(void);
void WG26_NVIC_Init(void);
void WG26_Init(void);

Wg26struct IntoWg26(unsigned long tem);
unsigned long WG26Input(unsigned char HID,unsigned short PID);

#endif
